<if condition="!empty($photos)">
<link rel="stylesheet" href="__PLUGIN_TMPL__/style/viewer.min.css">
<script src="__PLUGIN_TMPL__/script/viewer.min.js"></script>
<hr>
<h2>相册：</h2>
<hr>
<ul id="ytviewer">
	<foreach name="photos" item="vo">
	<li><img data-original="{:cmf_get_image_url($vo['url'])}" src="{:cmf_get_image_url($vo['url'])}" alt="{$vo['name']}"></li>
	</foreach>
</ul>
<script>var viewer = new Viewer(document.getElementById('ytviewer'),{url:'data-original'});
</script>
<hr>
</if>
<if condition="!empty($files)">
<hr>
<h2>附件：</h2>
<hr>
<foreach name="files" item="vo">
	<a class="btn btn-primary btn-block" href="{:cmf_get_file_download_url($vo['url'])}">下载地址{$key+1}</a>
</foreach>
<hr>
</if>